package org.csmzxy.class2333;

import java.util.SortedMap;

class Parent1{
    public final void print(){
        System.out.println("父类输出方法");
    }
}
class Son1 extends Parent1{
    @Override
    public void print(){
        System.out.println("子类重写父类方法");
    }
}

public class Example07 {
    public static void main(String[] args){
        Son1 son = new Son1();
    }
}
